import unittest
from time import sleep

from select import select
from selenium import webdriver
from selenium.webdriver.common.by import By




class TestCase03(unittest.TestCase):
    global dr
    #博为峰论坛测试
    def test_01(self):
        dr=webdriver.Chrome()
        dr.get('http://localhost:8081/upload/member.php?')
        sleep(2)
        se=select(dr.find_element(By.XPATH,'//div[@id="J_Search"]/div/ul/li[1]'))
        sleep(2)
        se.select_by_value("1").click()
        sleep(2)
        dr.quit()



